home *** CD-ROM | disk | FTP | other *** search
/ Enter 2002 November / EnterCD 11_2002.iso / Internet / Amaya 6.4 / Windows NT.exe / _SETUP.1 / creating_a_target_element.html < prev    next >
Encoding:
Extensible Markup Language  |  2002-06-11  |  3.0 KB  |  71 lines

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.     
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head>
  7.   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  8.   <meta name="generator" content="amaya 5.2" />
  9.   <title>Creating a Target Element</title>
  10.   <style type="text/css">  </style>
  11.   <link href="../style.css" rel="stylesheet" type="text/css" />
  12. </head>
  13.  
  14. <body xml:lang="en" lang="en">
  15.  
  16. <table border="0" summary="toc">
  17.   <tbody>
  18.     <tr>
  19.       <td><img alt="W3C" src="../../images/w3c_home" /> <img alt="Amaya"
  20.         src="../../images/amaya.gif" /></td>
  21.       <td><p><a href="creating_a_target_anchor.html" accesskey="p"><img alt="previous"
  22.         src="../../images/left.gif" /></a> 
  23.         <a href="../Links.html" accesskey="t"><img alt="top" src="../../images/up.gif" /></a> 
  24.         <a href="removing_a_link_or_a_target_anchor.html" accesskey="n"><img alt="next"
  25.         src="../../images/right.gif" /></a></p>
  26.       </td>
  27.     </tr>
  28.   </tbody>
  29. </table>
  30.  
  31. <div id="page_body">
  32. <h1>Creating a Target Element</h1>
  33.  
  34. <p>In HTML 4.0, an element can be used as a link target. A target element is
  35. a typed element with an <code>ID</code> attribute to which the link refers (a
  36. source anchor). Before creating a link to such an element, you must first
  37. turn it into a target element.</p>
  38.  
  39. <p class="ProcedureCaption">To create a target element:</p>
  40. <ol>
  41.   <li>Click and drag to select a character string within the element, or
  42.     press the <strong>Esc </strong>key (Unix) or <strong>F2</strong> key
  43.     (Windows) to select the entire element.
  44.     <p></p>
  45.   </li>
  46.   <li>Open the <strong>Links</strong> menu and select <strong>Create Target.
  47.     </strong>The selected element now has an ID attribute that identifies it
  48.     as a target element. Amaya automatically generates a unique
  49.     <code>ID</code> value. In Formatted view, if <strong>Show
  50.     Targets</strong> is turned on, the target element is preceded by an icon.
  51.     In the Links view, icons that identify target anchors are always
  52.     displayed.
  53.     <p></p>
  54.     <p class="ProcedureNote"><strong>Note:รกรกรก </strong>You can also directly
  55.     create the <code>ID</code> attribute by selecting the element and using
  56.     the <strong>Attributes</strong> menu. When you enter an attribute value,
  57.     Amaya checks it for uniqueness, and changes the value if it is already
  58.     used by another <code>NAME</code> or <code>ID</code> attribute in the
  59.     same document. Another method for creating <code>ID</code> attributes is
  60.     using <strong>Add/Remove IDs</strong> from the <strong>Special</strong>
  61.     menu. Selecting this function automatically adds an <code>ID</code>
  62.     attribute to all elements of a given name within the whole document, or
  63.     within the current selection. Simply type the element name and click the
  64.     <strong>Add ID</strong> button.</p>
  65.   </li>
  66. </ol>
  67. </div>
  68.  
  69. </body>
  70. </html>
  71.